package com._dev.social.service;

import com._dev.social.common.BaseResponse;
import com._dev.social.mode.domain.Users;
import com._dev.social.mode.domain.request.UserLoginOrRegisterRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author Administrator
* @description 针对表【users】的数据库操作Service
* @createDate 2024-11-05 09:45:16
*/
public interface UsersService extends IService<Users> {
    //用户脱敏
    Users getSafetyUser(Users originUser);
    //用户登录校验
    Users userLogin(String email, String password, HttpServletRequest request);

    void userRegister(UserLoginOrRegisterRequest userRegisterRequest);

    void updateUserProfileImage(String userId, String imageUrl);

    int userLogout(HttpServletRequest  request);
    Users findUserById(String uid);
    Boolean isExistUser(String uid);
    List<Users> getListOfUser();
}

